<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //JS中的对象类似于python中的字典，c语言的结构体
        //创建一个对象
        var user = {
            name: "小明",
            age: 10,
            work: ["itbaizhan", 'sxt'],
            flag:true,
            getname:function(){
                console.log("iwen");
            },
            con:ccontainer = {
            front:"前端",
            end:"后端"
            }
            }
        

        //对象的读取方式,对象名.属性
        console.log(user.name);
        user.getname();
        //可以嵌套调用
        console.log(user.con.front);
        


    </script>
</body>
</html>